package com.lxxie.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by xielx on 21/1/22 14:16
 */
@Entity
@Table(name = "SQL_HISTORY")
public class SqlHistory {
        @Id
        private String xh;
        @Column(name = "sql", nullable = false,length = 4000)
        private String sql;
        @Column(name = "xrsj")
        private Date xrsj = new Date();
        @Column(name = "gxsj")
        private Date gxsj = new Date();

        public String getXh() {
                return xh;
        }

        public void setXh(String xh) {
                this.xh = xh;
        }

        public String getSql() {
                return sql;
        }

        public void setSql(String sql) {
                this.sql = sql;
        }

        public Date getXrsj() {
                return xrsj;
        }

        public void setXrsj(Date xrsj) {
                this.xrsj = xrsj;
        }

        public Date getGxsj() {
                return gxsj;
        }

        public void setGxsj(Date gxsj) {
                this.gxsj = gxsj;
        }
}
